package edu.zjut.sjq.mapper;

import edu.zjut.sjq.bean.Grade;

import java.util.List;

public interface GradeMapper {

    int insert(Grade record);

    List<Grade> selectByArticleId(Integer articleId);

    Integer updateGradeAvgForArticle(Integer articleId,Number great);

    Grade selectByUserIdAndArticleId(int userId,int articleId);

    Integer deleteByUserIdAndArticleId(int userId,int articleId);
}